#ifdef __cplusplus
extern "C"{
#endif // __cplusplus

#include <stdio.h>
#include "BinaryTree.h"
#define MAXSIZE 7

int main()
{
    elemType array[10] = "426xxx1xx";
    struct Bintreestru tree;
    bintree_create(&(tree.root), array, 9);
    bintree_inOrder(tree.root);

    printf("leaf count =%d\n", bintree_leafcount(tree.root));
    return 0;
}

#ifdef __cplusplus
}
#endif // __cplusplus
